package com.heima.wemedia.feign;


import com.heima.apis.admin.lAdminClient;
import com.heima.apis.article.IArticleClient;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.PageSensitive;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WemediaClient implements lAdminClient {

    @Autowired
    private WmChannelService wmChannelService;

    @Override
    public ResponseResult list(PageSensitive dto) {
        return null;
    }

//    @Override
//    public ResponseResult getChannels() {
//        return null;
//    }

    @GetMapping("/api/v1/channel/list")
    @Override
    public ResponseResult getChannels() {
        return wmChannelService.findAll();
    }


}